package com.lening.iot.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lening.common.base.BaseServiceImpl;
import com.lening.iot.dao.LacontrolmangementDAO;
import com.lening.iot.dto.LacontrolmangementDTO;
import com.lening.iot.po.LacontrolmangementPO;
import com.lening.iot.service.LacontrolmangementService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ToDo:
 * @Author：李忠达
 * @date: 2024/6/4 14:08
 */
@Service
public class LacontrolmangementServiceImpl extends BaseServiceImpl<LacontrolmangementDAO, LacontrolmangementPO, LacontrolmangementDTO> implements LacontrolmangementService {
    @Autowired(required = false)
    private LacontrolmangementDAO lacontrolmangementDAO;
    @Override
    public Page<LacontrolmangementDTO> getAllLam(Page<LacontrolmangementDTO> lacontrolmangementDTOPage) {
        Page<LacontrolmangementDTO> lamList = lacontrolmangementDAO.getAllLam(lacontrolmangementDTOPage);
        return lamList;
    }

    @Override
    public List<LacontrolmangementDTO> getAll(String communityname) {
        return lacontrolmangementDAO.getAll(communityname);
    }

    @Override
    public Page<?> page(LacontrolmangementDTO lacontrolmangementDTO) {
        return lacontrolmangementDAO.getAllLam(lacontrolmangementDTO);
    }

    @Override
    public LacontrolmangementPO getById(Long id) {
        return this.lacontrolmangementDAO.getById(id);
    }
}
